package com.torres.knowledgeBase.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;

@RestController
@RequestMapping("/user")
@Slf4j
@Api(tags = "01.用户接口api")
public class UserController {

	@RequestMapping("/login")
	public ModelAndView login() {
		ModelAndView  model = new ModelAndView();
		model.addObject("user", "xxxxxx");
		model.setViewName("ligin");
		return model;
	}
	
}
